package service;

import java.util.List;

import dao.TopicDao;
import domain.Topic;

public class TopicServiceImpl implements TopicService {
	private TopicDao topicDao;
	
	



	public TopicDao getTopicDao() {
		return topicDao;
	}





	public void setTopicDao(TopicDao topicDao) {
		this.topicDao = topicDao;
	}





	@Override
	public void insertTopic(String content, int item_id, String acc){
		topicDao.insertTopic(content, item_id, acc);
	}
	
	@Override
	public List<Topic> showTopic(int item_id){
		List<Topic> topics = topicDao.showTopic(item_id);
		return topics;
	}





}
